package com.baizhi.cmfz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("cmfz_role")
public class CmfzRole implements Serializable {

    @TableId(value = "role_id",type = IdType.AUTO)
    private Integer roleId;

    private String roleName;

    private String roleDescription;
    @TableField(exist = false)
    private List<CmfzResource> resourceList;
}
